<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>忘记密码</title>
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
    <!-- main begin-->
    <div class="main">
        <div class="sidebar">
            <p><img src="images/forget.jpg" width="443" height="314" alt="" /></p>
        </div>
        <div class="sidebarg">
            <form action="/toForget" method="post">
                <div class="login">
                    <dl>
                        <dd class="blues">提示信息<span th:text="${msg}" style="color:red;"></span></dd>
                        <dd><label for="name">用户名：</label><input type="text" class="inputh" placeholder="用户名" id="name" name="userName" autocomplete="off"/></dd>
                        <dd><label for="password">手机号</label><input type="text" class="inputh" placeholder="手机号" id="tel" name="tel" autocomplete="off"/></dd>
                        <dd><label for="password">新密码：</label><input type="text" class="inputh" placeholder="密码" id="password" name="password" autocomplete="off"/></dd>
                        <dd>
                            <label class="lf" for="passwords">验证码：</label>
                            <input type="text" class="inputh inputs lf" placeholder="验证码" id="passwords" name="code" autocomplete="off"/>
                            <span class="wordp lf">
                                <img src="/getCode"  width="96" height="27" alt="" onclick="getCode(event)"/>
                            </span>
                            <span class="blues lf"><a href="" title="">看不清</a></span>
                        </dd>
                        <dd class="buttom">
                            <input name="" type="submit" value="修 改" class="spbg buttombg f14 lf" />
                            <a class="spbg buttombg buttombgs f14 lf" href="/">跳转登录界面</a>
                        </dd>

                    </dl>
                </div>
            </form>
        </div>
        <div class="cl"></div>
    </div>
    <!-- main end-->

    <!-- footer begin-->
</div>
<!--footer end-->

</div>
</body>
<script>
    function getCode (ev) {
        // console.log(ev)
        // console.log(this)
        var url = '/getCode?time='+new Date().getTime()
        ev.target.src=url
    }
</script>
</html>
